package com.ruoyi.qiankuantongji.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qiankuantongji.mapper.QiankuantongjiMapper;
import com.ruoyi.qiankuantongji.domain.Qiankuantongji;
import com.ruoyi.qiankuantongji.service.IQiankuantongjiService;

/**
 * 欠款统计Service业务层处理
 *
 * @author ruoyi
 * @date 2023-05-25
 */
@Service
public class QiankuantongjiServiceImpl implements IQiankuantongjiService
{
    @Autowired
    private QiankuantongjiMapper qiankuantongjiMapper;

    /**
     * 查询欠款统计
     *
     * @param id 欠款统计主键
     * @return 欠款统计
     */
    @Override
    public Qiankuantongji selectQiankuantongjiById(Long id)
    {
        return qiankuantongjiMapper.selectQiankuantongjiById(id);
    }

    /**
     * 查询欠款统计列表
     *
     * @param qiankuantongji 欠款统计
     * @return 欠款统计
     */
    @Override
    public List<Qiankuantongji> selectQiankuantongjiList(Qiankuantongji qiankuantongji)
    {
        return qiankuantongjiMapper.selectQiankuantongjiList(qiankuantongji);
    }

    /**
     * 新增欠款统计
     *
     * @param qiankuantongji 欠款统计
     * @return 结果
     */
    @Override
    public int insertQiankuantongji(Qiankuantongji qiankuantongji)
    {
        return qiankuantongjiMapper.insertQiankuantongji(qiankuantongji);
    }

    /**
     * 修改欠款统计
     *
     * @param qiankuantongji 欠款统计
     * @return 结果
     */
    @Override
    public int updateQiankuantongji(Qiankuantongji qiankuantongji)
    {
        return qiankuantongjiMapper.updateQiankuantongji(qiankuantongji);
    }

    /**
     * 批量删除欠款统计
     *
     * @param ids 需要删除的欠款统计主键
     * @return 结果
     */
    @Override
    public int deleteQiankuantongjiByIds(Long[] ids)
    {
        return qiankuantongjiMapper.deleteQiankuantongjiByIds(ids);
    }

    /**
     * 删除欠款统计信息
     *
     * @param id 欠款统计主键
     * @return 结果
     */
    @Override
    public int deleteQiankuantongjiById(Long id)
    {
        return qiankuantongjiMapper.deleteQiankuantongjiById(id);
    }
}
